<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/commons/include/html_doctype.html" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@include file="/commons/page/codegen.jsp" %>
		<script type="text/javascript" src="${ctx}/js/gpoint/rdp/emp/partyEmp.js"></script>
		<title>员工管理列表</title>
	</head>
	<body>
		<div class="wrapper wrapper-content  animated fadeInRight col-sm-12">
			<div  class="toolbar-panel ">
				<div class="toolbar-box">
					<div class="toolbar-head clearfix">
						<!-- 顶部按钮 -->
						<div class="buttons"> 		
							<a class="btn btn-primary fa fa-search" href="javascript:void(0);" ><span>搜索</span></a>
							<%-- <a class="btn btn-primary fa fa-add"   href="${ctx}/rdp/emp/partyEmp/edit.htm" ><span>添加</span></a>
					        <a class="btn btn-primary fa fa-edit"   href="javascript:void(0);"  action="${ctx}/rdp/emp/partyEmp/edit.htm" ><span>编辑</span></a>	  --%>
					      <%--   <a class="btn btn-primary fa fa-remove" href="javascript:void(0);"  action="${ctx}/rdp/emp/partyEmp/remove.htm"><span>删除</span></a> --%>
					        
					       <a class="btn btn-primary fa " href="javascript:void(0);" onclick="fenpei()"    ><span>分配</span></a>
					         
						</div>
						<!-- 收缩 -->
						<div class="tools">
							<a href="javascript:void(0);" class="collapse">
								<i class="bigger-180 fa  fa-angle-double-up"></i>
							</a>
						</div>
					</div>
					<!-- #查询条件-->
					<div class="toolbar-body" >
						<form role="form" class="search-form">
							<div  class="form-inline p-xxs">
							
							  <div class="form-group">
									<label   class="search-label">账户</label>:
									<input type="text"  name="Q^ACCOUNT_^SL"  class="form-control"  />
								</div>
								<div class="form-group">
									<label   class="search-label">名称</label>:
									<input type="text"  name="Q^NAME_^SL"  class="form-control"  />
								</div> 
								<!-- <div class="form-group">
									<label   class="search-label">图片</label>:
									<input type="text"  name="Q^PROFILE_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">状态。inactive=未激活；actived=激活；</label>:
									<input type="text"  name="Q^STATUS_^SL"  class="form-control"  />
								</div>  -->
							<!-- 	<div class="form-group">
									<label   class="search-label">性别</label>:
									<input type="text"  name="Q^GENDER_^SL"  class="form-control"  />
								</div> --> 
								
								<div class="form-group">									
									<label   class="search-label">性别</label>:
									<select  id="slt" name="Q^GENDER_^S" class="form-control" style="width:150px;" onchange="selectvalue();">
									     <option value="">全部</option>
									     <option value="male">男</option>
									     <option value="female">女</option>
									    
									</select>
								</div> 
								
								
								<div class="form-group">
									<label   class="search-label">邮箱</label>:
									<input type="text"  name="Q^EMAIL_^SL"  class="form-control"  />
								</div> 
								<!-- <div class="form-group">
									<label   class="search-label">地址</label>:
									<input type="text"  name="Q^ADDRESS_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">电话</label>:
									<input type="text"  name="Q^MOBILE_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">QQ</label>:
									<input type="text"  name="Q^QQ_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">WC_ACCOUNT_</label>:
									<input type="text"  name="Q^WC_ACCOUNT_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">照片</label>:
									<input type="text"  name="Q^PHOTO_^SL"  class="form-control"  />
								</div>  -->
								<!-- <div class="form-group">
									<label   class="search-label">岗位（1~N个）。通过数据字典维护，默认是普通员工</label>:
									<input type="text"  name="Q^POSITIONS_^SL"  class="form-control"  />
								</div>  -->
								<!-- <div class="form-group">
									<label   class="search-label">归属组织 ID</label>:
									<input type="text"  name="Q^GROUP_ID_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label class="search-label">创建时间 </label>:
									<input type="text" name="Q^CREATE_TIME_^DL"  class="form-control date"  />
								</div>
								<div class="form-group">
									<label class="search-label" >至</label>:
									<input type="text" name="Q^CREATE_TIME_^DG"  class="form-control date" />
								</div>
								<div class="form-group">
									<label class="search-label">更新时间 </label>:
									<input type="text" name="Q^UPDATE_TIME_^DL"  class="form-control date"  />
								</div>
								<div class="form-group">
									<label class="search-label" >至</label>:
									<input type="text" name="Q^UPDATE_TIME_^DG"  class="form-control date" />
								</div>
								<div class="form-group">
									<label   class="search-label">ORGID</label>:
									<input type="text"  name="Q^ORGID^SL"  class="form-control"  />
								</div>  -->
							</div>
						</form>
					</div><!--/ 查询条件-->
				</div>
			</div><!--/ 操作、查询-->
			<div class="jqGrid_wrapper">
				<table id="partyEmpGrid" ></table>
				<div id="partyEmpPager"></div>
			</div>
		</div>
	
<script type="text/javascript">



function fenpei(){
	  var ids = jQuery("#partyEmpGrid").jqGrid('getGridParam','selarrrow');
      if(ids.length != 1){
   	   DialogUtil.confirm("请选择一个选项");
   	   return;
      }
      var rowData= jQuery("#partyEmpGrid").jqGrid("getRowData",ids[0]);
       
	
	 //获取数值
	 console.log(rowData);
	 
	 // var  account=ids[0];
	 var  account=rowData.account;  
	 DialogUtil.dialog(
				 {
		 				title : "区域分配",
		 					content : '${ctx}/rdp/zone/doorZone/listfenpei.htm?type='+account,
		 				area : [ '400px', '600px' ],
		 				maxmin : false,
		 				end : function() {
		 					$("#partyEmpGrid").trigger("reloadGrid");
						}
		 			
		 		}
		 );
	    
	    
}
</script>
	
	</body>
	
</html>